package com.ht.temp.mapper;

import com.ht.temp.entity.Home;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author mayke_zhou
 * @since 2018-12-25
 */
@Repository
public interface HomeMapper extends BaseMapper<Home> {
    int deleteByPrimaryKey(Integer homeId);

    int insertSelective(Home record);

    Home selectByPrimaryKey(Integer homeId);

    int updateByPrimaryKeySelective(Home record);

    //查询所有房间信息绑定设备id
    List<Home> selectByHome(Home record);

    //查询所有房间信息
    List<Home> selectHome();
}
